<template>
	<view class="page">
		<view class="nav_bar" style="background: linear-gradient( 179deg, #D5BBFF 0%, #E7DBFD 100%);">
			<uni-nav-bar color="#333" left-icon="left" title="收益比例" :border='false' :fixed="true"
				background-color="transparent" @clickLeft="$util.back()"></uni-nav-bar>
		</view>

		<view class="nav_box"></view>

		<view class="table">
			<view class="header flex_center">
				<view class="item">主播</view>

				<view class="item">厅主</view>

				<view class="item">公会周返</view>
			</view>

			<view class="content">
				<view class="top flex_center">
					<view class="item flex_c">
						<view>实时</view>
					</view>
					<view class="item flex_c">
						<view>前2月</view>
						<text>实时奖励</text>
					</view>
					<view class="item flex_c">
						<view>实时</view>
					</view>
					<view class="item flex_c">
						<view>前2月</view>
						<text>实时奖励</text>
					</view>
					<view class="item flex_c">
						<view>厅流水</view>
					</view>
					<view class="item flex_c" id="nonr">
						<view>奖励</view>
					</view>
				</view>

				<view class="bottom flex_center">
					<view class="item flex_c">
						<view id="nonb">{{ data.first_month_anchor_ratio }}%</view>
					</view>

					<view class="item flex_c">
						<view id="nonb">{{ data.anchor_ratio }}%</view>
					</view>

					<view class="item flex_c">
						<view id="nonb">{{ data.first_month_master_ratio }}%</view>
					</view>

					<view class="item flex_c">
						<view id="nonb">{{ data.master_ratio }}%</view>
					</view>

					<view class="item flex_c">
						<view>1-3万</view>
						<view>3-8万</view>
						<view id="nonb">>8万</view>
					</view>

					<view class="item flex_c" id="nonr">
						<view>1%</view>
						<view>2%</view>
						<view id="nonb">3%</view>
					</view>
				</view>

			</view>

		</view>

		<view class="content">
			<view class="title">收益比例说明</view>
			
			<view class="text">1、主播实时自提60%，自入驻起前两月实时奖励4%</view>
			<view class="text">2、厅主实时自提18%，自入驻起前两月实时奖励3%</view>
			<view class="text">3、公会周返3%，所有周返考核旗下管理的厅流水，</view>
			<view class="text pl42">单厅流水 1-3万，奖励1%，</view>
			<view class="text pl42">单厅流水 3-8万，奖励2%</view>
			<view class="text pl42">单厅流水大于8万，奖励3%</view>
			
			<view class="title">流量扶持政策</view>

			<view class="text">1、新入驻房间送 2场 高质量(单价100以上)首充</view>
			<view class="text">2、流水兑换</view>
			<view class="text pl42">3w兑换1场</view>
			<view class="text pl42">5w兑换2场</view>
			<view class="text pl42">8w兑换3场</view>
			<view class="text pl42">11w兑换4场</view>
			<view class="text pl42">14w兑换5场</view>
			<view class="text pl42">17w兑换6场</view>
			<view class="text pl42">20w兑换7场</view>
			<view class="text">3、24小时大群注册扶持，首充和注册3:7混合提供，保证流量充足</view>
			<view class="text">4、信息流、24小时抖音抗走，抖音拍拍</view>
			<view class="text red">5、严禁薅羊毛首充，入驻后领完两场首充，不继续运营从公会收益中扣除首充金额</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: '',
				
				guild_id: 0,
				
				data: {
					anchor_ratio: 0,
					first_month_anchor_ratio: 0,
					first_month_master_ratio: 0,
					master_ratio: 0,
				},
			}
		},
		methods: {
			getGuildRatio(){
				this.$get('/guild/getGuildInfo?=',{
					guild_id: this.guild_id
				}).then(res=>{
					this.data = res.data;
				});
			},
		},
		
		onLoad(option) {
			this.guild_id = option.guild_id;
			this.getGuildRatio();
		}
	}
</script>

<style lang="less" scoped>
	.page {
		width: 100vw;
		min-height: 100vh;
		background: linear-gradient(179deg, #D5BBFF 0%, #E7DBFD 16%, #F2F2F5 100%);
		padding: 12rpx 24rpx 30rpx;
	}

	.table {
		border-radius: 24rpx;
		overflow: hidden;
		border: 1rpx solid #FFCFED;
		
		.header {
			height: 64rpx;
			background: linear-gradient(113deg, #AF65FF 0%, #6A83FF 100%);

			.item {
				flex: 1;
				font-size: 24rpx;
				color: #FFFFFF;
				line-height: 64rpx;
				text-align: center;
			}
		}

		.content {
			.top {
				.item {
					flex: 1;
					justify-content: space-around;

					height: 114rpx;
					background: #FFFFFF;
					border-right: 1rpx solid #FFCFED;
					border-bottom: 1rpx solid #FFCFED;
					padding: 18rpx 0;

					view {
						font-size: 28rpx;
						color: #333333;
					}

					text {
						font-size: 24rpx;
						color: #333333;
					}
				}
			}

			.bottom {
				.item {
					flex: 1;
					height: 212rpx;
					background: #FFFFFF;
					border-right: 1rpx solid #FFCFED;

					view {
						border-bottom: 1rpx solid #FFCFED;
						flex: 1;
						width: 100%;
						background: #FFFFFF;
						text-align: center;
						display: flex;
						align-items: center;
						justify-content: space-around;
						font-size: 28rpx;
						color: #333333;
					}
				}
			}

			#nonr {
				border-right: 0;
			}
			
			#nonb {
				border-bottom: 0;
			}

		}
	}

	.content {
		.title {
			font-weight: 500;
			font-size: 28rpx;
			color: #852EE2;
			line-height: 40rpx;
			margin: 32rpx 0 16rpx;
		}
		
		.text {
			font-size: 28rpx;
			color: #333333;
			line-height: 40rpx;
		}
		
		.pl42 {
			padding-left: 42rpx;
		}
		
		.red {
			color: #FD2A53;
		}
	}

</style>